package com.ruoyi.quartz.task;

import com.ruoyi.quartz.service.IWechatAppScheduleService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.CommandLineRunner;
import org.springframework.stereotype.Component;


@Component
public class CommandLineRunnerImpl implements CommandLineRunner {

    @Autowired
    private IWechatAppScheduleService wechatAppScheduleService;

    @Override
    public void run(String... args) throws Exception {
        // System.out.println(Arrays.toString(args));
        wechatAppScheduleService.getAccessToken();
    }
}